package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 获取首次申请的白名单信息
 */
public class WhitelistInfo implements Parcelable {

    // 资质商信息
    public WhitelistInfo(String rbId, String rbName, String businessLicenseCode, String province, String city, String area, String businessLicense, String businessLicenseScale, String dgBusinessLicense, String dgBusinessLicenseScale, String companyPhoto, String companyPhotoScale) {
        this.rbId = rbId;
        this.rbName = rbName;
        this.businessLicenseCode = businessLicenseCode;
        this.province = province;
        this.city = city;
        this.area = area;
        this.businessLicense = businessLicense;
        this.businessLicenseScale = businessLicenseScale;
        this.dgBusinessLicense = dgBusinessLicense;
        this.dgBusinessLicenseScale = dgBusinessLicenseScale;
        this.companyPhoto = companyPhoto;
        this.companyPhotoScale = companyPhotoScale;
    }

    /**
     * businessLicenseCode : 91370921MA3F8RX2X0
     * legalPersonPhone : 13235389589
     * legalPersonIdCard : 370921198011193911
     * legalPersonName : 朱勇
     * rbId :
     * rbName :
     * businessLicense :
     * dgBusinessLicense :
     * companyPhotoScale :
     * dgBusinessLicenseScale :
     * idCardPhotoScale :
     * companyPhoto :
     * businessLicenseScale :
     * idCardPhoto :
     * rbPhone :
     * status :
     * userId :
     * userName :
     * userPhone :
     * password :
     * smelterId :
     * smelterName :
     * bankList : [{"cardholder":"","bId":"","usageType":"","paymentType":"","defaultType":"","bankCardType":"","bankCardNo":"","bankName":"","bankBanchName":"","cardholderIdCard":"","cardholderIdCardScale":"","bankCardPhoto":"","bankCardPhotoScale":""}]
     */
    /*------------------------------资质商信息------------------------------*/
    // 资质商id
    private String rbId;
    // 资质商名称
    private String rbName;
    // 社会统一信用代码
    private String businessLicenseCode;
    // 省份
    private String province;
    // 城市
    private String city;
    // 区域
    private String area;
    private String areaId;
    // 资质商营业执照
    private String businessLicense;
    // 资质商营业执照缩略图
    private String businessLicenseScale;
    // 资质商危险品经营许可证
    private String dgBusinessLicense;
    // 资质商危险品经营许可证缩略图
    private String dgBusinessLicenseScale;
    // 门头照
    private String companyPhoto;
    // 门头照缩略图
    private String companyPhotoScale;
    // 排污许可证
    private String dischargeLicense;
    // 排污许可证缩略图
    private String dischargeLicenseScale;

    // 危险品经营许可证开始日期
    private String dgStart;
    // 危险品经营许可证截止日期
    private String dgEnd;
    // 排污许可证开始时间
    private String dischargeStart;
    // 排污许可证结束时间
    private String dischargeEnd;
    /*------------------------------法人及实控信息------------------------------*/
    // 法人名称
    private String legalPersonName;
    // 法人电话
    private String legalPersonPhone;
    // 法人身份证号
    private String legalPersonIdCard;
    // 实控人名称
    private String actualName;
    // 实控人电话
    private String actualPhone;
    // 实控人身份证号
    private String actualIdCard;
    // 法人身份证照片
    private String idCardPhoto;
    // 法人身份证照片缩略图
    private String idCardPhotoScale;
    // 实控人身份证照片
    private String actualControllerPhoto;
    // 实控人身份证照片缩略图
    private String actualControllerPhotoScale;

    /*------------------------------其它信息------------------------------*/

    // 资质商联系电话
    private String rbPhone;
    // 状态id
    private int status;
    private String statusName;
    private int ruStatus;
    // 负责人id
    private String userId;
    // 负责人姓名
    private String userName;
    // 负责人手机号
    private String userPhone;
    // 登录密码
    private String password;
    // 银行卡列表
    private List<BankCardInfo> bankList;
    // 冶炼厂列表
    private List<SmelterInfo> smelterList;

    public String getRbId() {
        return rbId;
    }

    public void setRbId(String rbId) {
        this.rbId = rbId;
    }

    public String getRbName() {
        return rbName;
    }

    public void setRbName(String rbName) {
        this.rbName = rbName;
    }

    public String getBusinessLicenseCode() {
        return businessLicenseCode;
    }

    public void setBusinessLicenseCode(String businessLicenseCode) {
        this.businessLicenseCode = businessLicenseCode;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getBusinessLicenseScale() {
        return businessLicenseScale;
    }

    public void setBusinessLicenseScale(String businessLicenseScale) {
        this.businessLicenseScale = businessLicenseScale;
    }

    public String getDgBusinessLicense() {
        return dgBusinessLicense;
    }

    public void setDgBusinessLicense(String dgBusinessLicense) {
        this.dgBusinessLicense = dgBusinessLicense;
    }

    public String getDgBusinessLicenseScale() {
        return dgBusinessLicenseScale;
    }

    public void setDgBusinessLicenseScale(String dgBusinessLicenseScale) {
        this.dgBusinessLicenseScale = dgBusinessLicenseScale;
    }

    public String getCompanyPhoto() {
        return companyPhoto;
    }

    public void setCompanyPhoto(String companyPhoto) {
        this.companyPhoto = companyPhoto;
    }

    public String getCompanyPhotoScale() {
        return companyPhotoScale;
    }

    public void setCompanyPhotoScale(String companyPhotoScale) {
        this.companyPhotoScale = companyPhotoScale;
    }

    public String getDischargeLicense() {
        return dischargeLicense;
    }

    public void setDischargeLicense(String dischargeLicense) {
        this.dischargeLicense = dischargeLicense;
    }

    public String getDischargeLicenseScale() {
        return dischargeLicenseScale;
    }

    public void setDischargeLicenseScale(String dischargeLicenseScale) {
        this.dischargeLicenseScale = dischargeLicenseScale;
    }

    public String getDgStart() {
        return dgStart;
    }

    public void setDgStart(String dgStart) {
        this.dgStart = dgStart;
    }

    public String getDgEnd() {
        return dgEnd;
    }

    public void setDgEnd(String dgEnd) {
        this.dgEnd = dgEnd;
    }

    public String getDischargeStart() {
        return dischargeStart;
    }

    public void setDischargeStart(String dischargeStart) {
        this.dischargeStart = dischargeStart;
    }

    public String getDischargeEnd() {
        return dischargeEnd;
    }

    public void setDischargeEnd(String dischargeEnd) {
        this.dischargeEnd = dischargeEnd;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getLegalPersonPhone() {
        return legalPersonPhone;
    }

    public void setLegalPersonPhone(String legalPersonPhone) {
        this.legalPersonPhone = legalPersonPhone;
    }

    public String getLegalPersonIdCard() {
        return legalPersonIdCard;
    }

    public void setLegalPersonIdCard(String legalPersonIdCard) {
        this.legalPersonIdCard = legalPersonIdCard;
    }

    public String getActualName() {
        return actualName;
    }

    public void setActualName(String actualName) {
        this.actualName = actualName;
    }

    public String getActualPhone() {
        return actualPhone;
    }

    public void setActualPhone(String actualPhone) {
        this.actualPhone = actualPhone;
    }

    public String getActualIdCard() {
        return actualIdCard;
    }

    public void setActualIdCard(String actualIdCard) {
        this.actualIdCard = actualIdCard;
    }

    public String getIdCardPhoto() {
        return idCardPhoto;
    }

    public void setIdCardPhoto(String idCardPhoto) {
        this.idCardPhoto = idCardPhoto;
    }

    public String getIdCardPhotoScale() {
        return idCardPhotoScale;
    }

    public void setIdCardPhotoScale(String idCardPhotoScale) {
        this.idCardPhotoScale = idCardPhotoScale;
    }

    public String getActualControllerPhoto() {
        return actualControllerPhoto;
    }

    public void setActualControllerPhoto(String actualControllerPhoto) {
        this.actualControllerPhoto = actualControllerPhoto;
    }

    public String getActualControllerPhotoScale() {
        return actualControllerPhotoScale;
    }

    public void setActualControllerPhotoScale(String actualControllerPhotoScale) {
        this.actualControllerPhotoScale = actualControllerPhotoScale;
    }

    public String getRbPhone() {
        return rbPhone;
    }

    public void setRbPhone(String rbPhone) {
        this.rbPhone = rbPhone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public int getRuStatus() {
        return ruStatus;
    }

    public void setRuStatus(int ruStatus) {
        this.ruStatus = ruStatus;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<BankCardInfo> getBankList() {
        return bankList;
    }

    public void setBankList(List<BankCardInfo> bankList) {
        this.bankList = bankList;
    }

    public List<SmelterInfo> getSmelterList() {
        return smelterList;
    }

    public void setSmelterList(List<SmelterInfo> smelterList) {
        this.smelterList = smelterList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.rbId);
        dest.writeString(this.rbName);
        dest.writeString(this.businessLicenseCode);
        dest.writeString(this.province);
        dest.writeString(this.city);
        dest.writeString(this.area);
        dest.writeString(this.areaId);
        dest.writeString(this.businessLicense);
        dest.writeString(this.businessLicenseScale);
        dest.writeString(this.dgBusinessLicense);
        dest.writeString(this.dgBusinessLicenseScale);
        dest.writeString(this.companyPhoto);
        dest.writeString(this.companyPhotoScale);
        dest.writeString(this.dischargeLicense);
        dest.writeString(this.dischargeLicenseScale);
        dest.writeString(this.dgStart);
        dest.writeString(this.dgEnd);
        dest.writeString(this.dischargeStart);
        dest.writeString(this.dischargeEnd);
        dest.writeString(this.legalPersonName);
        dest.writeString(this.legalPersonPhone);
        dest.writeString(this.legalPersonIdCard);
        dest.writeString(this.actualName);
        dest.writeString(this.actualPhone);
        dest.writeString(this.actualIdCard);
        dest.writeString(this.idCardPhoto);
        dest.writeString(this.idCardPhotoScale);
        dest.writeString(this.actualControllerPhoto);
        dest.writeString(this.actualControllerPhotoScale);
        dest.writeString(this.rbPhone);
        dest.writeInt(this.status);
        dest.writeString(this.statusName);
        dest.writeInt(this.ruStatus);
        dest.writeString(this.userId);
        dest.writeString(this.userName);
        dest.writeString(this.userPhone);
        dest.writeString(this.password);
        dest.writeTypedList(this.bankList);
        dest.writeTypedList(this.smelterList);
    }

    protected WhitelistInfo(Parcel in) {
        this.rbId = in.readString();
        this.rbName = in.readString();
        this.businessLicenseCode = in.readString();
        this.province = in.readString();
        this.city = in.readString();
        this.area = in.readString();
        this.areaId = in.readString();
        this.businessLicense = in.readString();
        this.businessLicenseScale = in.readString();
        this.dgBusinessLicense = in.readString();
        this.dgBusinessLicenseScale = in.readString();
        this.companyPhoto = in.readString();
        this.companyPhotoScale = in.readString();
        this.dischargeLicense = in.readString();
        this.dischargeLicenseScale = in.readString();
        this.dgStart = in.readString();
        this.dgEnd = in.readString();
        this.dischargeStart = in.readString();
        this.dischargeEnd = in.readString();
        this.legalPersonName = in.readString();
        this.legalPersonPhone = in.readString();
        this.legalPersonIdCard = in.readString();
        this.actualName = in.readString();
        this.actualPhone = in.readString();
        this.actualIdCard = in.readString();
        this.idCardPhoto = in.readString();
        this.idCardPhotoScale = in.readString();
        this.actualControllerPhoto = in.readString();
        this.actualControllerPhotoScale = in.readString();
        this.rbPhone = in.readString();
        this.status = in.readInt();
        this.statusName = in.readString();
        this.ruStatus = in.readInt();
        this.userId = in.readString();
        this.userName = in.readString();
        this.userPhone = in.readString();
        this.password = in.readString();
        this.bankList = in.createTypedArrayList(BankCardInfo.CREATOR);
        this.smelterList = in.createTypedArrayList(SmelterInfo.CREATOR);
    }

    public static final Creator<WhitelistInfo> CREATOR = new Creator<WhitelistInfo>() {
        @Override
        public WhitelistInfo createFromParcel(Parcel source) {
            return new WhitelistInfo(source);
        }

        @Override
        public WhitelistInfo[] newArray(int size) {
            return new WhitelistInfo[size];
        }
    };
}
